import warnings
warnings.filterwarnings('ignore')
from ultralytics import YOLO


if __name__ == '__main__':
    model = YOLO(r'D:\YOLOv11\runs\train\922_n_v11\weights\best.pt')
    model.predict(source=r'D:\YOLOv11\datasets\st-fu\val\images',
                  imgsz=640,
                  project='runs/seg',
                  name='exp',
                  save=True,
                  conf=0.5,
                  iou=0.7,
                )